/*
 * spa.js
 * auther
 * root namespace module
 */

/*jslint           browser : true,     continue : true,
   devel : true,    indent : 2,          maxerr : 10,
  newcpa : true,     nomen : true,      plugsplus : true,
  regexp : true,    sloppy : true,
 */

/* global : $,spa */


spa.shell = (function($){
    // ------------------------------ BEGIN MODULE SCOPE VARIABLES -----------------------------
    var
        configMap,stateMap,jqueryMap,setJqueryMap,initModule;

    configMap = {
        models : {

        },
        settable_map : {

        }
    }

    stateMap = {
        $container : null
    }

    jqueryMap = {
        $navigater : null
    }
    // ------------------------------ END MODULE SCOPE VARIABLES -----------------------------

    // ------------------------------ BEGIN UTILITY METHODS ----------------------------------
    // ------------------------------ BEGIN UTILITY METHODS ----------------------------------

    // ------------------------------ BEGIN DOM METHODS ----------------------------------
    // Beging DOM method /setJqueryMap/
    //
    setJqueryMap = function(){
        var
            $container = stateMap.$container
        jqueryMap.$container = $container
    }
    // End DOM method /setJqueryMap/
    // ------------------------------ END DOM METHODS ----------------------------------

    // ------------------------------ BEGIN EVENT METHODS ----------------------------------
    // ------------------------------ END EVENT METHODS ----------------------------------

    // ------------------------------ BEGIN PUBLIC METHODS ----------------------------------
    // Begin public method /initModule/
    initModule = function($contianer){
        stateMap.$container = $container
        setJqueryMap()
    }
    //End public method /initModule/

    // Begin public method /configModule
    configModule = function(options){
        spa.util.setConfigModule({
            input_map : options,
            settable_map : configMap.settable_map,
            config_map : configMap
        })
    }
    // End public method /configModule/
    // ------------------------------ END PUBLIC METHODS ----------------------------------

    return {
        initModule     : initModule,
        configModule   : configModule
    }
}(jQuery))
